package com.hzvictory.hotel_system.pojo.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
//import com.hzvictory.hotel_system.common.annotation.Excel;
import com.hzvictory.hotel_system.common.core.domain.BaseEntity;

/**
 * 菜品订单详情对象 dishorderitem
 *
 * @author hzvictory
 * @date 2025-07-25
 */
public class Dishorderitem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单ID */
    //@Excel(name = "订单ID")
    private Long orderId;

    /** 菜品ID */
    //@Excel(name = "菜品ID")
    private Long dishId;

    /** 数量 */
    //@Excel(name = "数量")
    private Long quantity;

    /** 单价 */
    //@Excel(name = "单价")
    private BigDecimal price;

    /** 小计 */
    //@Excel(name = "小计")
    private BigDecimal subtotal;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }

    public void setDishId(Long dishId)
    {
        this.dishId = dishId;
    }

    public Long getDishId()
    {
        return dishId;
    }

    public void setQuantity(Long quantity)
    {
        this.quantity = quantity;
    }

    public Long getQuantity()
    {
        return quantity;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public void setSubtotal(BigDecimal subtotal)
    {
        this.subtotal = subtotal;
    }

    public BigDecimal getSubtotal()
    {
        return subtotal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("dishId", getDishId())
                .append("quantity", getQuantity())
                .append("price", getPrice())
                .append("subtotal", getSubtotal())
                .toString();
    }
}
